package com.leadership.api.dao;

import java.util.Date;
import java.util.List;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.leadership.entity.actionlearning.ActionLearning;
import com.leadership.entity.actionlearning.Status;

/**
 * 
 * @author dan
 *
 */
@Dao("hibernate")
public interface ActionLearningDao {
    
    /**
     * 
     * @param status
     * @return
     */
    @Query("FROM ActionLearning WHERE disabled = false AND status = :status")
    public List<ActionLearning> list(@Variable("status") Status status); 
    
    /**
     * 
     * @param status
     * @param startDate
     * @return
     */
    @Query("FROM ActionLearning WHERE disabled = false AND status = :status AND startDate = :startDate")
    public List<ActionLearning> list(@Variable("status") Status status, @Variable("startDate") Date startDate); 

}
